package net.xiduth.game.player.dialogues.towns.portsarim;


import net.xiduth.game.player.dialogues.Dialogue;
import net.xiduth.utils.ShopsHandler;


/**
 * 
 * @Author Chaz - Jul 13, 2013
 * 
 *         Brian's Battleaxe Bazaar's Dialogue.
 */
public class Brian extends Dialogue {


    private int npcId;


    @Override
    public void start() {
        sendOptionsDialogue(SEND_DEFAULT_OPTIONS_TITLE,
                "So, are you selling something?", "'Ello.");
    }


    @Override
    public void run(int interfaceId, int componentId) {
        switch (stage) {
        case -1:
            switch (componentId) {
            case OPTION_1:
                stage = 0;
                sendPlayerDialogue(9827, "So, are you selling something?");
                break;
            case OPTION_2:
                stage = 2;
                sendPlayerDialogue(9827, "'Ello.");
                break;
            }
            break;
        case 0:
            stage = 1;
            sendNPCDialogue(npcId, 9827,
                    "Yep, take a look at these great axes.");
            break;
        case 1:
            stage = 3;
            ShopsHandler.openShop(player, 38);
            break;
        case 2:
            stage = 3;
            sendNPCDialogue(npcId, 9827, "'Ello.");
            break;
        case 3:
        default:
            end();
            break;
        }
    }


    @Override
    public void finish() {
        // TODO Auto-generated method stub


    }


}